package com.huangwenshuo.futurestarschoolmanagement.security;

import org.springframework.security.core.GrantedAuthority;

public class MyGrantedAuthority  implements GrantedAuthority {
    private String permission_url;
    private String permission_method;

    public String getPermissionUrl() {
        return permission_url;
    }

    public void setPermissionUrl(String permissionUrl) {
        this.permission_url = permissionUrl;
    }

    public String getMethod() {
        return permission_method;
    }

    public void setMethod(String permission_method) {
        this.permission_method = permission_method;
    }

    public MyGrantedAuthority(String permission_url, String permission_method) {
        this.permission_url = permission_url;
        this.permission_method = permission_method;
    }

    @Override
    public String getAuthority() {
        return this.permission_url + ";" + this.permission_method;
    }
}
